<div bsModal #alertModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" (onHidden)="onHidden()">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title pull-left">{{title}}</h6>
                <button type="button" class="close pull-right" aria-label="Close" (click)="hide(false)">
          <span aria-hidden="true">&times;</span>
        </button>
            </div>
            <div class="modal-body alert alert-primary">
                <div class="container" [innerHTML]="msg">
                </div>
            </div>
            <div *ngIf="typ=='alert'" class="modal-footer">
                <button type="button" class="btn btn-default" (click)="hide(false)">关闭</button>
            </div>
            <div *ngIf="typ=='confirm'" class="modal-footer">
                <button type="button" class="btn btn-primary" (click)="hide(true)">确定</button>
                <button type="button" class="btn btn-default" (click)="hide(false)">取消</button>
            </div>
        </div>
    </div>
</div>